package com.itheima.wms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.wms.common.service.ICrudService;
import com.itheima.wms.entity.AreaEntity;
import com.itheima.wms.vo.AreaDetailVO;
import com.itheima.wms.vo.AreaOverviewVO;
import com.itheima.wms.vo.ImportResultVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

/**
 * <p>
 * 业务接口
 * 库区
 * </p>
 */
public interface AreaService extends ICrudService<AreaEntity> {

    AreaOverviewVO overview(Long id);

    ImportResultVO importExcel(MultipartFile file);

    AreaEntity getByName(String area);

    IPage<AreaDetailVO> pageDetail(Page<AreaDetailVO> page, Map data);
}
